using UnityEngine;

public class checkcollider : MonoBehaviour
{
	public plane_smothfollow player;
	private float sceneOpenTime;

	private void Start()
	{
		sceneOpenTime = Time.realtimeSinceStartup;
	}

	private void OnTriggerEnter(Collider other)
	{
		if (sceneOpenTime == 0) return;
		if (!other.gameObject.CompareTag("AIPlane") && !other.gameObject.CompareTag("friplane") && !groundtrigger.triggered)
		{
			player.crashcollision();
		}
	}
}
